
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt"	uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
  	
  	<%@ include file="/WEB-INF/include/meta.jsp" %>
  	<%@ include file="/WEB-INF/include/css.jsp" %>
	
	<title></title>
	
  </head>

  <body>
  
  	<%@ include file="/WEB-INF/include/header.jsp" %>
	
	<%@ include file="/WEB-INF/include/menu.jsp" %>
	
	<div class="container main-content">
	
	  <div class="panel panel-default arizona-panel arizona-panel-layout">
		  
		    <div class="panel-heading">
          <ol class="breadcrumb">
            <li><a href="${ctx}/home">首页</a></li>  
          </ol>
        </div>
		  
		<div class="panel-body">        

    <!-- ================ submenu ================ -->
        
        <div class= "col-xs-2 arizona-panel-layout-left no-horizontal-padding">
                  <%@ include file="/WEB-INF/include/submenu.jsp" %>
        </div><!--Submenu End-->

            
        <!-- ================ right panel ================ -->

        <div class="col-xs-10 arizona-panel-layout-right">

            <div class="arizona-breadcrumb no-bottom-border clearfix">
                <h2>
                      <i class="glyphicon glyphicon-search"  title="student search"></i><span> 用户管理&nbsp;-&nbsp;学生信息修改</span>
                </h2>
            </div>


            <div class="col-md-12 form-horizontal">
            <div class="arizona-breadcrumb-wrapper">
                <ul class="nav nav-pills arizona-breadcrumb-nav">
                    <li class="active"><a data-toggle="tab" href="#basicInfo">用户基本信息</a></li>
                    <li><a data-toggle="tab" href="#moreInfo">用户详细信息</a></li>
                    <a href="javascript:history.back(-1)" style="position:absolute; right:80px; top:0px; margin-top: 10px; margin-right: 10px">返回</a>
                    <a href="javascript:void(0)" style="position:absolute; right:0px; top:0px; margin-top: 10px; margin-right: 10px" onclick="test()">确认修改</a>
                </ul>
				<form:form class="form-horizontal" action="${ctx }/student/update" method="post" name="stuUpdateFrom" modelAttribute="stu">
                <div class="tab-content">
                    <div id="basicInfo" class="tab-pane active">
                        
                            <div class="modal-body">
                                <div class="form-group demo2do-form-group">
                                      <label class="col-xs-2 control-label">Uid</label>
                                      <div class="col-xs-2 pull-left">
                                            <p class="form-control-static">${stu.suid }</p>
                                            <form:hidden path="suid"/>
                                      </div>
                                      <label class="col-xs-2 control-label">注册时间</label>
                                      <div class="col xs-2 pull-left">
                                            <p class="form-control-static">${stu.screatTime }</p>
                                      </div>
                                </div>
                                
                                <div class="form-group demo2do-form-group">
                                      <label class="col-xs-2 control-label">姓名</label>
                                      <div class="col-xs-2 pull-left">
                                             <p class="form-control-static"> <form:input path="name" size='10'/>  </p>
                                      </div>
                                      <label class="col-xs-2 control-label">性别</label>
                                      <div class="col-xs-6 pull-left">
                                          <p class="form-control-static"> <form:input path="sex" size='10'/>  </p>
                                      </div>
                                      <label class="col-xs-2 control-label">First Name</label>
                                      <div class="col-xs-2 pull-left">
                                            <p class="form-control-static"> <form:input path="firstName" size='10'/> </p>
                                      </div>
                                      <label class="col-xs-2 control-label">生日</label>
                                      <div class="col-xs-6 pull-left">
                                             <p class="form-control-static"> <form:input path="birthday" size='10'/>  </p>
                                      </div>
                                      <label class="col-xs-2 control-label">Last Name</label>
                                      <div class="col-xs-2 pull-left">
                                            <p class="form-control-static"> <form:input path="lastName" size='10'/>  </p>
                                      </div>
                                </div>
                                <div class="form-group demo2do-form-group">
                                      <label class="col-xs-2 control-label">学校</label>
                                      <div class="col-xs-2 pull-left">
                                         <p class="form-control-static">  ${stu.school.schoolNAME }　</p>                                      </div>
                                      <label class="col-xs-2 control-label">年级</label>
                                      <div class="col-xs-2 pull-left">
                                          <p class="form-control-static"> <form:input path="grade" size='10'/>    </p>
                                      </div>
                                </div>
                                <div class="form-group demo2do-form-group">
                                      <label class="col-xs-2 control-label">邮箱</label>
                                      <div class="col-xs-2 pull-left">
                                            <p class="form-control-static">${stu.email }</p>
                                      </div>
                                      <label class="col-xs-2 control-label">手机号</label>
                                      <div class="col-xs-6 pull-left">
                                          <p class="form-control-static"> <form:input path="cellPhone" size='10'/>    </p>
                                      </div>
                                      <label class="col-xs-2 control-label">QQ</label>
                                      <div class="col-xs-2 pull-left">
                                          <p class="form-control-static"><form:input path="QQ" size='10'/>    </p>
                                      </div>
                                </div>
                            </div>
                    </div><!-- basicInfo pane end-->

                    <div id="moreInfo" class="tab-pane">
                            <div class="modal-body">
                                <div class="form-group demo2do-form-group">
                                      <label class="col-xs-2 control-label">身份证号</label>
                                      <div class="col-xs-10 pull-left">
                                          <p class="form-control-static"><form:input path="idCard" size='10'/>      </p>
                                      </div>
                                      <label class="col-xs-2 control-label">护照号码</label>
                                      <div class="col xs-2 pull-left">
                                          <p class="form-control-static"><form:input path="passid" size='10'/>     </p>
                                      </div>
                                      <label class="col-xs-2 control-label">护照到期时间</label>
                                      <div class="col xs-2 pull-left">
                                         <p class="form-control-static"> <form:input path="passCloseTime" size='10'/>    </p>
                                      </div>
                                </div>
                                <div class="form-group demo2do-form-group">
                                      <label class="col-xs-2 control-label">通信地址</label>
                                      <div class="col-xs-10 pull-left">
                                         <p class="form-control-static"><form:input path="address" size='10'/>     </p>
                                      </div>
                                      <label class="col-xs-2 control-label">邮编</label>
                                      <div class="col-xs-6 pull-left">
                                          <p class="form-control-static"><form:input path="postCode" size='10'/>    </p>
                                      </div>
                                </div>
                                <div class="form-group demo2do-form-group">
                                      <label class="col-xs-2 control-label">父亲</label>
                                      <div class="col-xs-2 pull-left">
                                            <!-- <p class="form-control-static">李一蛋</p> -->
                                        <p class="form-control-static"><form:input path="fatherName" size='10'/>    </p>
                                      </div>
                                      <label class="col-xs-2 control-label">电话</label>
                                      <div class="col-xs-6 pull-left">
                                         <p class="form-control-static"><form:input path="fatherPhone" size='10'/>   </p>
                                      </div>
                                      <label class="col-xs-6 control-label">邮箱</label>
                                      <div class="col-xs-6 pull-left">
                                         <p class="form-control-static"><form:input path="fatherEmail" size='10'/>   </p>
                                      </div>
                                      <label class="col-xs-2 control-label">母亲</label>
                                      <div class="col-xs-2 pull-left">
                                            <!-- <p class="form-control-static">王丽红</p> -->
                                        <p class="form-control-static"><form:input path="motherName" size='10'/>     </p>
                                      </div>
                                      <label class="col-xs-2 control-label">电话</label>
                                      <div class="col-xs-6 pull-left">
                                        <p class="form-control-static"> <form:input path="motherPhone" size='10'/>   </p>
                                      </div>
                                      <label class="col-xs-6 control-label">邮箱</label>
                                      <div class="col-xs-6 pull-left">
                                       <p class="form-control-static"><form:input path="motherEmail" size='10'/>    </p>
                                      </div>
                                </div>
                            </div>
                       
                    </div><!-- basicInfo pane end-->

                </div><!-- tab content end-->
 			</form:form>
            </div> 
                                    
            <div class="arizona-breadcrumb-wrapper">
                <ul class="nav nav-pills arizona-breadcrumb-nav">
                    <li class="active"><a data-toggle="tab" href="#projectInfo">项目信息</a></li>
                    <li><a data-toggle="tab" href="#"></a></li>
                </ul>

                <div class="tab-content">
                    <div id="projectInfo" class="tab-pane active">
                        <div class="row clearfix">
                            <c:forEach items="${stu.subProjects}" var="pu">
                                      <div class="col-xs-3">
                               		 <a href="${ctx}/${pu.spid}/detail" class="thumbnail" style="text-align:center">
                                   	 <h1 class="glyphicon glyphicon-file"></h1>
                                    <p>${pu.name }</p>
                                </a>
                            </div>
                                      </c:forEach>
                        </div>
                    </div><!--project info end-->


                </div><!-- tab content end-->

            </div> 
            </div> <!-- tab panel end-->


        </div><!--panel layout right End-->
    </div>



  	</div>
  		
  </div>
  	
  	<%@ include file="/WEB-INF/include/footer.jsp" %>

	<%@ include file="/WEB-INF/include/script.jsp" %>
  
  <script type="text/javascript"> 
    function test(){
     	document.stuUpdateFrom.submit();;
     	alert("修改成功！") ;
    }
  </script> 
  </body>
  
</html>
